package com.bjpowernode.utils;

import com.bjpowernode.entities.TUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class LoginInfoUtil {
    public static TUser getCurrentLoginUser() {
        return (TUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
